package com.android.gufengmall.bean;

import com.android.gufengmall.R;

import java.util.ArrayList;
import java.util.List;

/**
 * 轮播图数据
 */
public class CarouselBean {
    public Integer imageRes;
    public String title;

    public CarouselBean(Integer imageRes, String title) {
        this.imageRes = imageRes;
        this.title = title;
    }

    public static List<CarouselBean> getCarouselData() {
        List<CarouselBean> list = new ArrayList<>();
        list.add(new CarouselBean(R.drawable.icon_shop_11, "相信自己,你努力的样子真的很美"));
        list.add(new CarouselBean(R.drawable.icon_shop_15, "极致简约,梦幻小屋"));
        list.add(new CarouselBean(R.drawable.icon_shop_20, "超级卖梦人"));
        list.add(new CarouselBean(R.drawable.icon_shop_8, "夏季新搭配"));
        list.add(new CarouselBean(R.drawable.icon_shop_9, "绝美风格搭配"));
        list.add(new CarouselBean(R.drawable.icon_shop_5, "微微一笑 很倾城"));
        return list;
    }

    public static List<CarouselBean> getMallCarouselData() {
        List<CarouselBean> list = new ArrayList<>();
        list.add(new CarouselBean(R.drawable.icon_shop_9, "慢品人间烟火色，闲观万事岁月长"));
        list.add(new CarouselBean(R.drawable.icon_shop_8, "酒里一片凄寒月，我同南雪笑余生"));
        list.add(new CarouselBean(R.drawable.icon_shop_25, "白衣走马执霜雪，不枉人间少年郎"));
        list.add(new CarouselBean(R.drawable.icon_shop_23, "我是檐上三寸雪，你是人间惊鸿客"));
        list.add(new CarouselBean(R.drawable.icon_shop_18, "我观云雾腾山海，不见仙人雾中来"));
        list.add(new CarouselBean(R.drawable.icon_shop_16, "清风有意难留我，明月无心自照人"));
        return list;
    }

    public static List<CarouselBean> getMallDetailCarouselData(int position) {
        List<CarouselBean> list = new ArrayList<>();
        switch (position) {
            case 0:
            case 1:
            case 2:
                list.add(new CarouselBean(R.drawable.icon_shop_17, "汉服"));
                list.add(new CarouselBean(R.drawable.icon_shop_18, "汉服"));
                list.add(new CarouselBean(R.drawable.icon_shop_20, "汉服"));
                list.add(new CarouselBean(R.drawable.icon_shop_21, "汉服"));
                break;
            case 3:
                list.add(new CarouselBean(R.drawable.icon_shop_22, "头饰"));
                list.add(new CarouselBean(R.drawable.icon_shop_23, "头饰"));
                list.add(new CarouselBean(R.drawable.icon_shop_19, "头饰"));
                break;
            case 4:
                list.add(new CarouselBean(R.drawable.icon_shop_25, "笛子"));
                list.add(new CarouselBean(R.drawable.icon_shop_25, "笛子"));
                list.add(new CarouselBean(R.drawable.icon_shop_26, "笛子"));
                break;
            case 5:
                list.add(new CarouselBean(R.drawable.icon_shop_28, "萧"));
                list.add(new CarouselBean(R.drawable.icon_shop_29, "萧"));
                list.add(new CarouselBean(R.drawable.icon_shop_30, "萧"));
                list.add(new CarouselBean(R.drawable.icon_shop_31, "萧"));
                list.add(new CarouselBean(R.drawable.icon_shop_32, "萧"));
                list.add(new CarouselBean(R.drawable.icon_shop_33, "萧"));
                break;
            case 6:
                list.add(new CarouselBean(R.drawable.icon_shop_27, "古筝"));
                list.add(new CarouselBean(R.drawable.icon_shop_27, "古筝"));
                list.add(new CarouselBean(R.drawable.icon_shop_27, "古筝"));
                break;
            case 7:
                list.add(new CarouselBean(R.drawable.icon_shop_2, "陶瓷器"));
                list.add(new CarouselBean(R.drawable.icon_shop_3, "陶瓷器"));
                list.add(new CarouselBean(R.drawable.icon_shop_1, "陶瓷器"));
                list.add(new CarouselBean(R.drawable.icon_shop_4, "陶瓷器"));
                break;
            case 8:
                list.add(new CarouselBean(R.drawable.icon_shop_5, "陶瓷器"));
                list.add(new CarouselBean(R.drawable.icon_shop_6, "陶瓷器"));
                list.add(new CarouselBean(R.drawable.icon_shop_4, "陶瓷器"));
                break;
            case 9:
                list.add(new CarouselBean(R.drawable.icon_shop_7, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_8, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_9, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_16, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_14, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_15, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_13, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_12, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_11, "小物品"));
                list.add(new CarouselBean(R.drawable.icon_shop_10, "小物品"));
                break;
        }
        return list;
    }
}
